package cn.vivi.order.client;

import cn.vivi.commons.util.Result;
import cn.vivi.order.hystrix.PaymentClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cloud-payment-service", fallback = PaymentClientFallBack.class)
//@RequestMapping("payments")
public interface PaymentClient {

    @GetMapping("/payments/{id}")
    Result findPayment(@PathVariable("id") String id) ;

}
